package online.misscl.lsy.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 留言箱表
 * </p>
 *
 * @author misscl
 * @since 2023/03/16 23:17
 */
@Getter
@Setter
@TableName("message_box")
@ApiModel(value = "MessageBox对象", description = "留言箱表")
public class MessageBox implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("留言id")
    @TableId(value = "message_id", type = IdType.AUTO)
    private Integer messageId;

    @ApiModelProperty("主题")
    @TableField("message_title")
    private String messageTitle;

    @ApiModelProperty("留言内容")
    @TableField("message_content")
    private String messageContent;

    @ApiModelProperty("管理员回复")
    @TableField("admin_reple")
    private String adminReple;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Integer userId;


}
